
import request from '@/utils/request'

// 获取菜单
export const getMenus = () => {
  return request({
    url: '/admin/system/sysUser/menus',
    method: 'get',
  })
}

export const findNodes = () => {
  return request({
    url: '/admin/system/menu/findNodes',
    method: 'get',
  })
}

export const saveOrUpdateMenu = (data) => {
  return request({
    url: '/admin/system/menu/saveOrUpdateMenu',
    method: 'post',
    data:data
  })
}

export const deleteMenu = (id) => {
  return request({
    url: `/admin/system/menu/deleteMenu/${id}`,
    method: "delete",
  });
};


